'use strict';

module.exports = app => {
    class UserServiceController extends app.Controller {
        constructor(ctx) {
            super(ctx);
            ctx.backData = Object.assign({}, {
                site: app.config.site
            });
        }
        async customer(ctx) {
            await ctx.render('customer.html', ctx.backData);
        }
        async accountQuestion(ctx) {
            await ctx.render('customer/accountQuestion', ctx.backData);
        }
        async gameQuestion(ctx) {
            await ctx.render('customer/gameQuestion', ctx.backData);
        }
        async socialQuestion(ctx) {
            await ctx.render('customer/socialQuestion', ctx.backData);
        }
        async storeQuestion(ctx) {
            await ctx.render('customer/storeQuestion', ctx.backData);
        }
        async questionDetail(ctx) {
            await ctx.render('customer/questionDetail', ctx.backData);
        }
        async customerHuman(ctx) {
            await ctx.render('customer/customerHuman', ctx.backData);
        }
        async customerReply(ctx) {
            await ctx.render('customer/customerReply', ctx.backData);
        }
        async replyDetail(ctx) {
            await ctx.render('customer/reply/replyDetail', ctx.backData);
        }
    }
    return UserServiceController;
};